package com.itheima.chapter03.characterstring;
/*
    String构造方法
 */
public class demostring2 {
    public static void main(String[] args) {
        String s1 = new String();
        System.out.println("s1:"+s1);
        char[] ch={'a','b','c'};
        String s2= new String(ch);
        System.out.println("s2:"+s2);
        String s3= new String("123");
        System.out.println("s3:"+s3);
        String s4= "abc";
        System.out.println("s4:"+s4);
        byte[] bys ={97,98,99};//ASII 码
        String s5= new String(bys);
        System.out.println("s5:"+s5);

    }
}
